package com.spring.cloud.api;

import com.spring.cloud.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

public interface UserApi {

    @GetMapping("/user/query")
    User queryUser(@RequestParam("username") String username, @RequestParam("password") String password);

    @GetMapping("/user/getUser/{id}")
    User getUser(@PathVariable("id")Integer id);

}
